package com.tfjybj.itoo.teach.provider.facade;

import org.apache.dubbo.config.annotation.Service;
import com.github.pagehelper.PageInfo;
import com.tfjybj.itoo.teach.FacadeApi.TeacherCourseApi;
import com.tfjybj.itoo.teach.entity.TeacherCourseEntity;
import com.tfjybj.itoo.teach.provider.service.TeacherCourseService;

import javax.annotation.Resource;
import java.util.List;

@Service
@org.springframework.stereotype.Service
public class TeacherCourseFacade implements TeacherCourseApi {

    @Resource
    private TeacherCourseService teacherCourseService;

    @Override
    public boolean save(TeacherCourseEntity teacherCourseEntity) {
        return teacherCourseService.save(teacherCourseEntity);
    }

    @Override
    public boolean removeById(String id) {
        return teacherCourseService.removeById(id);
    }

    @Override
    public boolean removeByIds(List<String> ids) {
        return teacherCourseService.removeByIds(ids);
    }

    @Override
    public boolean updateById(TeacherCourseEntity teacherCourseEntity) {
        return teacherCourseService.updateById(teacherCourseEntity);
    }

    @Override
    public TeacherCourseEntity getById(String id) {
        return teacherCourseService.getById(id);
    }

    @Override
    public PageInfo<TeacherCourseEntity> queryPageAll(Integer pageNo, Integer pageSize) {
        return teacherCourseService.queryPageAll(pageNo, pageSize);
    }

}
